package cn.kgc.springboot06.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: mosin
 * @version: v1.0  2023/1/5
 */
@RestController
@RequestMapping("student")
//@CrossOrigin   // 允许当前接口跨域访问
public class StudentController {


    @RequestMapping("t1")
    public Map test1(){
        HashMap<String, Object> map = new HashMap<>();
        map.put("code", 200);
        map.put("msg", "请求成功");
        return map;
    }

}
